import { ChangeDetectionStrategy, Component, OnInit } from '@angular/core';

@Component({
  selector: 'app-mode',
  templateUrl: './custom-position.component.html',
  changeDetection: ChangeDetectionStrategy.OnPush,
})
export class CustomPositionComponent implements OnInit {
  data = [];

  ngOnInit() {
    this.data = [
      { time: new Date().getTime(), content: '张珊(19928928) 审批进行中', type: 'info', position: 'left' },
      { time: new Date().getTime(), content: '张珊(19928928) 审批通过', type: 'success', position: 'right' },
      { time: new Date().getTime(), content: '王柳(19928928) 审批进行中', type: 'info', position: 'tiled' },
      {
        time: new Date().getTime(),
        content: { list: ['王柳(19928928) 审批未通过', '审批意见：促销品库存不足，请修改促销品'] },
        type: 'error',
        dot: true,
      },
    ];
  }
}
